package com.hboxs.asl.entity;

import javax.persistence.Entity;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created by hboxs002 on 2016/10/15.
 */
@Entity
@Table(name = "t_verification_code")
@SequenceGenerator(name = "sequenceGenerator", sequenceName = "t_verification_code_sequence")
public class VerificationCode extends BaseEntity {

    /**
     * 申请验证码的手机号码
     */
    private String phone;

    /**
     * 已发送验证码
     */
    private String code;

    /**
     * 发送验证码的时间
     */
    private Date sendDate;

    /**
     * 获取申请验证码的手机号码
     * @return
     */
    public String getPhone() {
        return phone;
    }

    /**
     * 设置申请验证码的手机号码
     * @param phone
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }

    /**
     * 获取验证码
     * @return
     */
    public String getCode() {
        return code;
    }

    /**
     * 设置验证码
     * @param code
     */
    public void setCode(String code) {
        this.code = code;
    }

    /**
     * 获取发送验证码的时间
     * @return
     */
    public Date getSendDate() {
        return sendDate;
    }

    /**
     * 设置发送验证码的时间
     * @param sendDate
     */
    public void setSendDate(Date sendDate) {
        this.sendDate = sendDate;
    }
}
